package com.dfba.Homework8;

public class Test {
    public static void main(String[] args) {
        GouWuChe gouWuChe = new GouWuChe();
        Laptop laptop = new Laptop(1001,"笔记本",10000.0);
        Phone phone = new Phone(1001,"手机",5000.0);
        Fruit fruit = new Fruit(1001,"水果",50.0);
        System.out.println("=================添加商品====================");
        gouWuChe.addGoods(laptop);
        gouWuChe.addGoods(phone);
        gouWuChe.addGoods(fruit);
        System.out.println("=================打印商品====================");
        gouWuChe.showGoods();
        System.out.println("-----------------");
        gouWuChe.total();
    }
}
